﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebRSSBuilder.ASP._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
  
      <h2>
        Welcome to Web Rss Builder!
    </h2>
    
    <p>
          <div align="center">    
          <p>
       Please choose a File: </p>      
          <asp:GridView 
            ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="LinqDataSource1" Width="295px" 
            onselectedindexchanged="GridView1_SelectedIndexChanged" 
            DataKeyNames="FileID" CellPadding="4" ForeColor="#333333" GridLines="None">
              <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:CommandField SelectText="Select"  ShowSelectButton="True" />
                <asp:BoundField DataField="FileID" HeaderText="FileID" 
                    SortExpression="FileID" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="FileName" HeaderText="FileName" 
                    SortExpression="FileName" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="FileURL" HeaderText="FileURL" 
                    SortExpression="FileURL" Visible="False" />
                <asp:TemplateField HeaderText="aspnet_Role" SortExpression="aspnet_Role" 
                    Visible="False">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("aspnet_Role.RoleName") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("aspnet_Role.RoleName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
              <EditRowStyle BackColor="#999999" />
              <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
              <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
              <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
              <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
              <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
              <SortedAscendingCellStyle BackColor="#E9E7E2" />
              <SortedAscendingHeaderStyle BackColor="#506C8C" />
              <SortedDescendingCellStyle BackColor="#FFFDF8" />
              <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        </div>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
            ContextTypeName="WebRSSBuilder.ASP.SourceDataContext" EntityTypeName="" 
            Select="new (FileName, FileURL, FileID, aspnet_Role)" TableName="Files">
        </asp:LinqDataSource>
   
    
</asp:Content>
